package com.mv.pojo;


import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.util.Date;

@Data
@AllArgsConstructor
@NoArgsConstructor
@Accessors(chain = true)
@TableName("movie")
public class Movie extends BasePojo{
    @TableId(type = IdType.AUTO)
    private Integer id;
    private String name;
    private Double price;
    private Integer count;
    private Integer integral;
    @JsonFormat(pattern = "HH:mm:ss",timezone = "GMT+8")
    private Date movieTime;
    @DateTimeFormat(pattern = "HH:mm:ss")
    @TableField(exist = false)
    private Integer num; //单次售出票数
}
